package com.runfast.waimai.service;



import com.runfast.waimai.dao.model.BaseUser;
import com.runfast.waimai.dao.model.RunfastBusinessAccounts;
import com.runfast.waimai.dao.model.SysUserToken;
import com.runfast.waimai.dao.model.WaiMaiRunfastAgentaccounts;

import java.util.Set;

public interface ShiroService {
    /**
     * 获取用户权限列表
     */
    Set<String> getUserPermissions(Integer userId);

    SysUserToken queryByToken(String token);

    /**
     * 根据用户ID，查询用户
     * @param userId
     */
    BaseUser queryUser(Integer userId);
    /**
     * 根据用户ID，查询代理商账户
     * @param userId
     */
    WaiMaiRunfastAgentaccounts queryAccounts(Integer userId);
    /**
     * 根据用户ID，查询商家账户
     * @param userId
     */
    RunfastBusinessAccounts queryBusinessAccounts(Integer userId);
}